package com.yq.ylmall.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yq.ylmall.dto.product.ProductQueryDto;
import com.yq.ylmall.model.product.Product;
import com.yq.ylmall.vo.product.ProductInfoVo;
import com.yq.ylmall.vo.product.ProductPageVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商品 Mapper 接口
 * </p>
 *
 * @author yzk789
 * @since 2024-05-30
 */
public interface ProductMapper extends BaseMapper<Product> {

    IPage<ProductPageVo> queryProduct(IPage<ProductPageVo> page, @Param("dto") ProductQueryDto dto);

    ProductInfoVo getProductInfoById(@Param("id") Long productId);


}
